package com.xoa.model.easyReport;

import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;
import java.util.Map;

public class RepFlow {

    //填报人所属部门ID
    private Integer deptId;

    //填报人所属部门编码
    private String deptCode;

    //填报人所属部门名称
    private String deptName;

    //数据汇总
    private Map<String ,String> map;

    //判断是否有编辑删除权限  true显示 false不显示
    private Boolean privlook;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column rep_flow.FLOW_ID
     *
     * @mbggenerated
     */
    private Integer flowId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column rep_flow.REP_TABLE_ID
     *
     * @mbggenerated
     */
    private Integer repTableId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column rep_flow.USER_ID
     *
     * @mbggenerated
     */
    private String userId;

    private String userName;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column rep_flow.FLOW_TIME
     *
     * @mbggenerated
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date flowTime;

    /**
     * 填报的内容
     */
    private List<RepData> repDataList;

    /**
     * 填报内容对应的字段
     */
    private List<RepField> repFieldList;

    public Boolean getPrivlook() {
        return privlook;
    }

    public void setPrivlook(Boolean privlook) {
        this.privlook = privlook;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Map<String, String> getMap() {
        return map;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column rep_flow.FLOW_ID
     *
     * @return the value of rep_flow.FLOW_ID
     *
     * @mbggenerated
     */
    public Integer getFlowId() {
        return flowId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column rep_flow.FLOW_ID
     *
     * @param flowId the value for rep_flow.FLOW_ID
     *
     * @mbggenerated
     */
    public void setFlowId(Integer flowId) {
        this.flowId = flowId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column rep_flow.REP_TABLE_ID
     *
     * @return the value of rep_flow.REP_TABLE_ID
     *
     * @mbggenerated
     */
    public Integer getRepTableId() {
        return repTableId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column rep_flow.REP_TABLE_ID
     *
     * @param repTableId the value for rep_flow.REP_TABLE_ID
     *
     * @mbggenerated
     */
    public void setRepTableId(Integer repTableId) {
        this.repTableId = repTableId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column rep_flow.USER_ID
     *
     * @return the value of rep_flow.USER_ID
     *
     * @mbggenerated
     */
    public String getUserId() {
        return userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column rep_flow.USER_ID
     *
     * @param userId the value for rep_flow.USER_ID
     *
     * @mbggenerated
     */
    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column rep_flow.FLOW_TIME
     *
     * @return the value of rep_flow.FLOW_TIME
     *
     * @mbggenerated
     */
    public Date getFlowTime() {
        return flowTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column rep_flow.FLOW_TIME
     *
     * @param flowTime the value for rep_flow.FLOW_TIME
     *
     * @mbggenerated
     */
    public void setFlowTime(Date flowTime) {
        this.flowTime = flowTime;
    }

    public List<RepData> getRepDataList() {
        return repDataList;
    }

    public void setRepDataList(List<RepData> repDataList) {
        this.repDataList = repDataList;
    }

    public List<RepField> getRepFieldList() {
        return repFieldList;
    }

    public void setRepFieldList(List<RepField> repFieldList) {
        this.repFieldList = repFieldList;
    }
}